import request from '@/utils/request'

// 查询发送消息列表
export function listMessSend(query) {
  return request({
    url: '/comlbs/messSend/list',
    method: 'get',
    params: query
  })
}

// 查询发送消息详细
export function getMessSend(id) {
  return request({
    url: '/comlbs/messSend/' + id,
    method: 'get'
  })
}

// 新增发送消息
export function addMessSend(data) {
  return request({
    url: '/comlbs/messSend',
    method: 'post',
    data: data
  })
}
// 获取角色
export function getRoleManageListAll() {
  return request({
    url: '/system/role/optionSelect',
    method: 'get',
  })
}
// 获取用户树
export function getCompanyUsersTree() {
  return request({
    url: '/system/dept/userTree',
    method: 'post',
  })
}

// 修改发送消息
export function updateMessSend(data) {
  return request({
    url: '/comlbs/messSend',
    method: 'put',
    data: data
  })
}

// 删除发送消息
export function delMessSend(id) {
  return request({
    url: '/comlbs/messSend/' + id,
    method: 'delete'
  })
}
